/**
 * 
 */
package Controllers.GenericToolsForController;

/**
 * @author Guy
 * enum for worker postion by data base
 */
public enum WorkerPostion {
	
		INSPECTOR("inspector"),
		EVLUATOR("evlutaor"),
		EXECUATION_LEADER("executionLeader"),
		COMMITTIE_MEMBER1("CommitieMember1"),
		COMMITTIE_MEMBER2("CommitieMember2"),
		CHAIR_MEN("ChairMan"),
		EXAMINER("examiner"),
		INITIATOR("initiator");
		
		 private String text;

		 WorkerPostion(String text) {
		    this.text = text;
		  }
		 
		 public String getText() 
		 {
			    return this.text;
		 }
		 public static WorkerPostion fromString(String text) 
		 {
			 if (text != null) 
			 {
			    for (WorkerPostion b : WorkerPostion.values()) 
			    {
			        if (text.equalsIgnoreCase(b.text)) 
			        {
			          return b;
			        }
			      }
			    }
			    return null;
		  }
		
	
}
